package com.youlai.boot.modules.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.modules.content.model.entity.LzComment;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.modules.content.model.query.LzCommentQuery;
import com.youlai.boot.modules.content.model.vo.LzCommentVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 评论Mapper接口
 *
 * @author lz0816
 * @since 2025-03-06 16:49
 */
@Mapper
public interface LzCommentMapper extends BaseMapper<LzComment> {

    /**
     * 获取评论分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    Page<LzCommentVO> getLzCommentPage(Page<LzCommentVO> page, LzCommentQuery queryParams);

    Page<LzCommentVO> getLzBlogCommentPage(Page<LzCommentVO> objectPage, LzCommentQuery queryParams);
}
